console.log(1212);

function getadd(name: string, age: number = 20): string {
  console.log(age);
  return name;
}
getadd("1");

function tsChong(name: string): string;

function tsChong(age: number, num: number): number;

function tsChong(str: any): any {
  if (typeof str === "string") {
    console.log(str + "字符串");
  } else {
    console.log(str + "数字");
  }
}
tsChong(1, 1);

class Person {
  name:string;
  constructor(n:string) {
    this.name = n;
  }
  run():void{
    console.log(this.name)
  }
}
const a = new Person("刘涵")
a.run()
